// $Id$
package cz.pd.projectbuilder.beans.load;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import java.io.Serializable;

/**
 * 
 * @author diblik
 * @version $Revision$
 */
@XStreamAlias("akce")
public class ActionBean implements Serializable {

  private static final long serialVersionUID = 1L;

  @XStreamAsAttribute
  private String buttonName;

  @XStreamAsAttribute
  private String action;

  public ActionBean(String name, String action) {
    this.buttonName = name;
    this.action = action;
  }

  public String getAction() {
    return action;
  }

  public void setAction(String action) {
    this.action = action;
  }

  public String getName() {
    return buttonName;
  }

  public void setName(String name) {
    this.buttonName = name;
  }

  @Override
  public String toString() {
    return "name: " + buttonName + ", action: " + action;
  }
}
